package com.medusa.aps.business.modules.board.model.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(of = {"workshopId"})
public class WorkshopProductionStatisticsDTO {

    /**
     * 主键
     */
    private Long id;

    /**
     * 车间id
     */
    private Integer workshopId;

    /**
     * 车间名称
     */
    private String workshopName;

    /**
     * 车间编码
     */
    private String workshopCode;


    /**
     * 已排产设备数量
     */
    private Integer scheduledEquipmentCnt;

    /**
     * 未排产设备数量
     */
    private Integer unscheduledEquipmentCnt;

    /**
     * 计划数量
     */
    private Integer plannedCnt;

    /**
     * 已完工数量
     */
    private Integer completedCnt;

    /**
     * 生产进度
     */
    private BigDecimal productionSchedule;

    /**
     * 关联订单数
     */
    private Integer associatedOrderCnt;


    /**
     * 车间维度各个字段的统计日期
     */
    private LocalDateTime statisticsDate;
}
